package cn.edu.sdjzu.xg.eagle.entity;

import lombok.*;

import java.io.Serializable;

/**
 * @author tg.si@188.com
 * @project xg22
 * @date 2024/3/26
 */

@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@ToString
public class Department implements Comparable<Department>, Serializable {
    private Long id;
    private String description;
    private String no;
    private String remarks;
    private School school;

    /**
     * 编号排序
     * @param o the object to be compared.
     * @return
     */
    @Override
    public int compareTo(Department o) {
        // no为排序依据
        return this.no.compareTo(o.no);
    }
}
